home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / SYQUEST / SQHDX / RWABS.C < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  629 b   |  42 lines

  1. /* Test driver calls */
  2.  
  3. #include    "osbind.h"
  4. #include    "nuosbind.h"
  5. #include    "getstart.h"
  6.  
  7. main()
  8. {
  9.     char    buf[512], bbuf[512];
  10.     int    i;
  11.  
  12. /*    
  13.     for (i = 0; i < 512;) {
  14.         buf[i++] = 'M';
  15.         buf[i++] = 'I';
  16.         buf[i++] = 'N';
  17.         buf[i++] = 'O';
  18.     }
  19.  
  20. /**/    
  21.     /* physical operation on unit 0 */
  22. /*
  23.     Lrwabs(9, buf, 1, 0x10000, 2);
  24.     Lrwabs(8, bbuf, 1, 0x10000, 3);
  25. /**/    
  26.     /* logical operation on D: */
  27. /*
  28.     i = 1;
  29.     while (i == 1) {
  30.         Mediach(3);
  31.         Getbpb(3);
  32.         Rwabs(1, buf, 1, 0x700, 3);
  33.     }
  34. /**/    
  35. /*
  36.     Lrwabs(0, bbuf, 1, 0x10000, 3);
  37. /**/
  38.     Rwabs(8, bbuf, 1, 0, 2);
  39.     Rwabs(9, bbuf, 1, 0, 2);
  40.     Pterm(0);
  41. }
  42.